import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/magnetFile/getList',
    method: 'get',
    params,
  })
}

export function getAllmagnetFile(params) {
  return request({
    url: '/magnetFile/getAllmagnetFile',
    method: 'get',
    params,
  })
}

export function get(params) {
  return request({
    url: '/magnetFile/get',
    method: 'get',
    params,
  })
}

export function _delete(params) {
  return request({
    url: '/magnetFile/delete',
    method: 'post',
    data: params,
  })
}

export function update(params) {
  return request({
    url: '/magnetFile/update',
    method: 'post',
    data: params,
  })
}

export function magnetFileArticle(params) {
  return request({
    url: '/magnetFile/magnetFileArticle',
    method: 'post',
    data: params,
  })
}

export function add(params) {
  return request({
    url: '/magnetFile/add',
    method: 'post',
    data: params,
  })
}

export function grabMagnet(params) {
  return request({
    url: '/magnetFile/grabMagnet',
    method: 'post',
    data: params,
  })
}

export function getAllMagnet(params) {
  return request({
    url: '/magnetFile/getAllMagnet',
    method: 'get',
    params,
  })
}
